package com.wang.vedio.fragment;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.View;

import com.vondear.rxui.fragment.NewLazyFragment;
import com.wang.vedio.R;

/**
 * A simple {@link Fragment} subclass.
 * Use the {@link SearchSubListFragment#newInstance} factory method to
 * create an instance of this fragment.
 */
public class SearchSubListFragment extends NewLazyFragment {

    // TODO: Rename parameter arguments, choose names that match
    // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
    private static final String ARG_POSITION = "position";
    private static final String ARG_PARAM2 = "param2";

    // TODO: Rename and change types of parameters
    private int position;
    private String mParam2;

    public SearchSubListFragment() {
    }

    public static SearchSubListFragment newInstance(int position) {
        SearchSubListFragment fragment = new SearchSubListFragment();
        Bundle args = new Bundle();
        args.getInt(ARG_POSITION, position);
        fragment.setArguments(args);
        return fragment;
    }

    /**
     * Use this factory method to create a new instance of
     * this fragment using the provided parameters.
     *
     * @param position Parameter 1.
     * @param param2 Parameter 2.
     * @return A new instance of fragment SearchSubListFragment.
     */
    // TODO: Rename and change types and number of parameters
    public static SearchSubListFragment newInstance(int position, String param2) {
        SearchSubListFragment fragment = new SearchSubListFragment();
        Bundle args = new Bundle();
        args.getInt(ARG_POSITION, position);
        args.putString(ARG_PARAM2, param2);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getArguments() != null) {
            position = getArguments().getInt(ARG_POSITION);
        }
    }

    @Override
    protected void initView(View view) {
        super.initView(view);
    }

    @Override
    protected void initData() {
        super.initData();
    }

    @Override
    protected int getContentViewId() {
        return R.layout.fragment_search_sub_list;
    }
}